import java.util.TreeSet;

public class Test06 {
    public static void main(String[] args) {
        Student s1=new Student("zangsn",23);
        Student s2=new Student("lisi",24);
        Student s3=new Student("wangwu",25);
        TreeSet<Student> ts=new TreeSet<>();
        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        System.out.println(ts);
    }
}
